package com.risk.modules.rm.beans;

public enum Level {
    low("low","低"),
    medium("medium","中"),
    high("high","高"),
    ;
    public String value;
    public String key;

    Level(String value,String key){
        this.value = value;
        this.key = key;
    }

    public static Level get(String key) {// 获取所有的值
        Level[] lotteryType = Level.values();
        for (Level type : lotteryType) {
            if (type.key.equals(key)) {
                return type;
            }
        }
        return null;
    }
}
